package com.shiwaixiangcun.monitor.dto;


import com.rabbit.spring.data.domain.ext.Status;
import com.shiwaixiangcun.monitor.domain.User;
import org.springframework.beans.BeanUtils;

public class UserDto {
    private Long id;
    private String number;
    private String name;
    private String phone;
    private Status status;
    private String idCard;

    public UserDto(User user) {
        BeanUtils.copyProperties(user, this);
        this.id = user.getId();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
}
